/**
 * 适配 pro-tree数据源
 * @author xiufu.wang
 */
import adaptAutocomplete from './adapt-autocomplete'
import adaptPagination from './adapt-pagination'
import adaptSelect from './adapt-select'
import adaptTable from './adapt-table'
import adaptTree from './adapt-tree'
import adaptCascader from './adapt-cascader'


const adapts = [adaptAutocomplete, adaptPagination, adaptSelect, adaptTable, adaptTree, adaptCascader]

export default function applyAdapt(dataSource, customerCallbackAdapts){ 
    adapts.forEach(r => r(dataSource))
    // 注入用户自定义的数据源适配
    customerCallbackAdapts.forEach(r => r(dataSource))
}